Automating the hydrological Analysis Using Python

Importing needed modules

reading DEM data

visualizing the Digital Elevation model

Elevation of the flow direction

Specify flow direction values According to the different directions.

N NE E SE S SW W NW

Plotting the Flow Direction

Computing Accumalation of flow from the flow direction

Ploting the Flow Accumlation

Obtaining Stream Order

Important Note

We can change the geometry of the returned river network by specifying different accumulation thresholds:

I choosed it to be 1500

After getting the branches of flow over 1500, I need to select the pour points for start Delinating catchment from flow direction , But I am facing a problem that I have a raster image which makes it difficult for extracting the the coordinates of the pour points

I solved this issue by extracting the x and y values of every point in the previous visualization , then I will use ploty for building and interactive dashboard for getting x and y for all the pour points.

delinate watershed for only one pour point by doing it manually and inputting x,y coordinates of only one point

In progress

Creating a mouse event to extract the x_coordinates,Y_coordinates of pour points by clicking on the point in the visualization for Having a list for all pour points in order to be used for automating watersheds delination